package org.hk.springMVC.dao;

import org.apache.ibatis.annotations.Select;
import org.hk.springMVC.bean.Car;
import org.springframework.stereotype.Repository;

/**
 * @ClassName: CarDao
 * @Date: 2025/7/12   10:26
 * @Description: dao
 * @Author: hk
 */
//这里不需要加
//@Repository
public interface CarDao {
    @Select("select id,brand,car_num as carNum,produce_time as produceTime,guide_price as guidePrice,car_type as carType from t_car where id = #{id}")
    Car selectById(Long id);

}
